package cn.wp.ewallet.wmps.scheduler;

import cn.wp.common.core.plugin.scheduler.SchedulerRunnable;
import cn.wp.common.core.plugin.scheduler.SchedulerTask;
import cn.wp.common.core.util.ApplicationContextUtil;
import cn.wp.ewallet.wmps.service.RegularSettlementService;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class RegularSettlementRunnable extends SchedulerRunnable {
    public RegularSettlementRunnable(SchedulerTask schedulerTask) {
        super(schedulerTask);
    }

    @Override
    public void runStart() {
        RegularSettlementService regularSettlementService = ApplicationContextUtil.getBean(RegularSettlementService.class);
        regularSettlementService.regularSettlement();
    }

    @Override
    public void runFinish(SchedulerTask schedulerTask) {
        log.info("定期理财每日统计结束");

    }
}

